Skip to content

Instantly share code, notes, and snippets.

@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active September 30, 2026 03:26
Conventional Commits Cheatsheet
@real-jiakai
real-jiakai / ssh-snippets.md
Last active September 30, 2026 03:21
ssh工具代码脚本片段

1、debian、ubuntu更新并升级软件包

apt update && apt upgrade -y

2、docker compose重新部署

docker compose down && docker compose up -d

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

#!/bin/zsh
# WARNING! The script is meant to show how and what can be disabled. Don’t use it as it is, adapt it to your needs.
# Credit: Original idea and script disable.sh by pwnsdx https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3
# Disabling unwanted services on macOS Big Sur (11), macOS Monterey (12), macOS Ventura (13) and macOS Sonoma (14)
# Disabling SIP is required ("csrutil disable" from Terminal in Recovery)
# Modifications are written in /private/var/db/com.apple.xpc.launchd/ disabled.plist, disabled.501.plist
# To revert, delete /private/var/db/com.apple.xpc.launchd/ disabled.plist and disabled.501.plist and reboot; sudo rm -r /private/var/db/com.apple.xpc.launchd/*
# user
@theletterf
theletterf / cloudflare-openrouter-chatbot-setup.md
Created July 19, 2026 14:09
A small AI chatbot on Cloudflare Workers and OpenRouter

A small AI chatbot on Cloudflare Workers and OpenRouter

This is a practical architecture for adding a chat interface to a static site without operating a server. It uses a Cloudflare Worker to serve the static site and provide one API endpoint, OpenRouter for model access, Cloudflare Turnstile for abuse challenges, and a Durable Object for per-visitor rate limiting.

It is suitable for a personal site, portfolio, documentation site, or small public knowledge assistant. It is not an invitation to expose an uncapped model key to the internet.

What you need

  • A static site build, such as Hugo, that produces public/.
  • A Cloudflare account and a Worker project.
@m4ll0k
m4ll0k / gist:11f40f41fac6277dd5a7c57367094873
Created February 11, 2021 19:34
List of real addresses
777 Brockton Avenue, Abington MA 2351
30 Memorial Drive, Avon MA 2322
250 Hartford Avenue, Bellingham MA 2019
700 Oak Street, Brockton MA 2301
66-4 Parkhurst Rd, Chelmsford MA 1824
591 Memorial Dr, Chicopee MA 1020
55 Brooksby Village Way, Danvers MA 1923
137 Teaticket Hwy, East Falmouth MA 2536
42 Fairhaven Commons Way, Fairhaven MA 2719
374 William S Canning Blvd, Fall River MA 2721
@dknowles2
dknowles2 / skylight-api.md
Last active September 30, 2026 02:44
Skylight REST API Documentation

Skylight REST API Documentation

Base URL: https://app.ourskylight.com/api

Authentication: Bearer token in Authorization header — Authorization: Bearer <access_token>

Authentication Flow

Overview